package com.jianli.smart.aop.demo;

public class StaticProxy implements Hello{
	private Hello hello;
	
	public StaticProxy(){
		hello = new HelloImpl();
	}

	@Override
	public void say() {
		before();
		hello.say();
		after();
	}
	
	private void before(){
		System.out.println("before");
	}
	
	private void after(){
		System.out.println("after");
	}
}
